﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;



namespace BiffenModel
{

        [DataContract]
        public class Employee : Person
        {
            [DataMember]
            private string _userName;
            [DataMember]
            private string _password;

            public Employee(int id, string fname, string lname, string street, string streetNo, string city, int zipCode, string phone, string email, string username, string password)
                : base(id, fname, lname, street, streetNo, city, zipCode, phone, email)
            {
                this._userName = username;
                this._password = password;

            }
            public Employee()
            {

            }
            [DataMember]
            public string UserName
            {
                get { return _userName; }
                set { _userName = value; }
            }
            [DataMember]
            public string Password
            {
                get { return _password; }
                set { _password = value; }
            }



        }
    
    
    
    }
